package com.yuelao.event;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;

/**
 * @author FLY
 * @version v1.0
 * @project yuelao-server
 * @date 2017/9/11 18:20
 * @修改记录 版本       修改人         修改时间         修改内容描述
 * --------------------------------------------------
 * <p>
 * --------------------------------------------------
 */
@Component
public class EventPublisher {
    @Autowired
    private ApplicationContext applicationContext;

    public void publishEvent(Event event) {
        applicationContext.publishEvent(event);
    }

}
